<!DOCTYPE html>
<html>
<head>
<title>Shop Online</title>
<?php 
	session_start();
	include '../views/_meta.php';
	include '../models/Customer.php';
	require_once '../models/_check.php';
	$customerID=$_SESSION["session_customer_id"];
	$row=Customer::getCustomerInfo($customerID);
?>
</head>
<body>
<form method="post" action="">
	<div id="firstLine">
		<div id="top-bar">
		<?php include '../views/_top_bar.php';?>
		</div>
	</div>
	<div id="container">
		<div id="header">
			<?php include '../views/_head.php';?>
		</div>
		<?php include '_menu_head.php';?>
		<div id="center">
			
			<div id="menu-left"><?php include '../views/_menu_left_customer.php';?></div>
			<div id="table">
					<table id="table-customer">
						<tr>
							<th colspan="2">Thông tin cá nhân</th>
						</tr>
						<tr>
							<td>Họ và tên:</td>
							<td><?php echo $row['f_name'].' '.$row['l_name'];?></td>
							
						</tr>
						<tr>
							<td>Giới tính:</td>
							<td><?php echo $row['gender'];?></td>
							
						</tr>
						<tr>
							<td>Ngày sinh:</td>
							<td><?php echo $row['day'].'-'.$row['month'].'-'.$row['year'];?></td>
							
						</tr>
						<tr>
							<td>Email:</td>
							<td><?php echo $row['email'] ?></td>
							
						</tr>
						<tr>
							<td>Phone:</td>
							<td><?php echo $row['phone']?></td>
							
						</tr>
						<tr>
							<td>Địa chỉ:</td>
							<td><?php echo $row['address']?></td>
							
						</tr>
						<tr>
							<td>Thành phố:</td>
							<td><?php echo $row['city']?></td>
							
						</tr>
						<tr>
							<td>Số dư tài khoản:</td>
							<td><?php echo number_format($row['money'],3,".",".").' VND'?></td>
							
						</tr>
					</table>	
			</div>
			<div id="menu-left">
				<?php include '_menu_left.php';?>
			</div>
		</div>
	</div>
	<div id="footer">
		<?php include '../views/_footer.php';?>
	</div>
</form>
</body>
</html>